import { CommonProps, Properties } from '@/plugins/form/form-components/common/SelectProps';
import { IGaeaSetting } from '@/plugins/form/defines/application';
import { PermissionFields } from '@/plugins/form/types';

declare type DateMode = 'year' | 'month' | 'date' | 'time'; // 统一的 在pc的组件内需要进行抓换
export type PCDateMode = 'year' | 'month' | 'date' | 'time';

export class Props extends CommonProps {
  id: string;
  name: string;
  extra?: string;
  public placeholder = '请选择'; // 控件提示语
  public mode?: DateMode = 'date'; // 日期选择格式
  public backMode?: DateMode = 'date'; // 日期返回格式
  public validator?: any;
  public minDate?: string;
  public maxDate?: string;
  public permission?: PermissionFields;
  public readonly?: any;
}

export class State {
  showModal: boolean | any;
  value: Date | undefined;
  pickerValue: Date | undefined;
  public visibleConditions?: any;
}
